<?php

include 'includes/utilities.php';
$link = OpenDB();
$codigo = mysql_real_escape_string($_GET["codigo"]);
$query = "delete from microscopia_template where codigo = '" . $codigo . "'";
$delete = PostSQL($query);
$commit = PostSQL("COMMIT");
CloseDB($link);
if ($delete)
{
    header("Location: adminTemplateResecciones.php");
} else
{
    header("Location: error.php?error=Error al eliminar");
}
?>
